{% extends "base.html" %}  
{% block title %} 患者随访列表 {% endblock %}  

{% block content %} 
<div class="container">

    <!-- Docs nav
    ================================================== -->
    <div class="row">
      <div class="span3 bs-docs-sidebar">
        <ul class="nav nav-list bs-docs-sidenav">
          <li><a href="{% url sle.views.save_follow id %}"><i class="icon-chevron-right"></i> 新增随访</a></li>
          <li><a href="{% url sle.views.patient_chart id %}"><i class="icon-chevron-right"></i> 图表分析</a></li>
          <li><a href="{% url sle.views.viewedit_patient id %}"><i class="icon-chevron-right"></i> 返回记录</a></li>
        </ul>
      </div>
      

<div class="span9">



        <!-- Tables
        ================================================== -->
        <section id="tables">
          <div class="page-header">
            <h1>随访记录列表</h1>
          </div>
          
           

       
                   
          <div class="bs-docs-example">
            <table class="table table-hover">
              <thead>
                <tr>
                  
                  <th>随访记录号</th>
                  <th>随访记录日期</th>
                  <th>操作</th>
                </tr>
              </thead>
              <tbody>
              
              {% for item in list_items.object_list %}
                <tr>
                 
                   <td>--&nbsp;&nbsp;{{item.id}}&nbsp;&nbsp;--</td>
                  <td>{{item.inputdate|date:"Y-m-d"}}</td>
                 
                  
                  <td><a href="{% url sle.views.view_follow item.id %}">查看</a> {% if perms.sle.delete_follow %}/<a href="{% url sle.views.del_follow item.Patient_id item.id %}">删除</a>{% endif %}</td>
                </tr>
               
               {% endfor %}
              </tbody>
            </table>
          </div>


        </section>
        
        
            <div class="pagination pagination-right">
              <ul>
              {% if list_items.has_previous %}
    <li><a href="?page={{ list_items.previous_page_number }}">Previous</a>
{% endif %}
</li>
<li>
    <a href='#' onclick="return false;">Page {{ list_items.number }} of {{ list_items.paginator.num_pages }}.</a>
</li>
<li>
{% if list_items.has_next %}
        <a href="?page={{ list_items.next_page_number }}">Next</a>
{% endif %}
</li>

</ul>
            </div>
          

</div>
</div>
</div>
{% endblock %} 